package org.gdpu.model;

/**
 * Created by HEWI2 on 1/22/14.
 */
public enum Sex {

    /**
     * 女
     */
    FEMALE {
        public int getSex() {
            return 0;
        }
    },

    /**
     * 男
     */
    MALE {
        public int getSex() {
            return 1;
        }
    };

    public abstract int getSex();

    @Override
    public String toString() {
        switch (this) {
            case FEMALE:
                return "女生";
            case MALE:
                return "男生";
            default:
                return "Error";
        }
    }
}
